<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">

<title> 提交记录 5661 - Judge Duck Online </title>

<link rel="icon" type="image/png" href="/images/judgeduck-logo-small.png" />

<script src="/libs/js/jquery-3.2.1.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/libs/css/bootstrap.min.css" />

<!-- Latest compiled and minified JavaScript -->
<script src="/libs/js/bootstrap.min.js"></script>

<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" href="/css/non-responsive.css" type="text/css" />

<script src="/js/md5.js"></script>
<script src="/js/judgeduck.js"></script>

<script type="text/x-mathjax-config">
	MathJax.Hub.Config({
		showProcessingMessages: false,
		tex2jax: {
			inlineMath: [["$", "$"], ["\\\\(", "\\\\)"]],
			processEscapes:true
		},
		menuSettings: {
			zoom: "Hover"
		}
	});
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>

</head>

<body onload="">

<!-- Fixed navbar -->
<nav class="navbar navbar-default" role="navigation" style="background-color: #eeeeee">
	<div class="container">
		<div class="navbar-header">
			<div class="navbar-brand">
				<a href="/">
					<img src="/images/judgeduck-logo.png" width="40px" height="40px" style="margin:-10px" />
				</a>
			</div>
			<font class="navbar-brand">
				Judge Duck Online
			</font>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="nav-item">
					<a class="nav-link" href="/index/index.html"> 首页 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/problems/index.html"> 题目列表 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/submissions/index.html"> 提交记录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/blogs/index.html"> 博客 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/faq/index.html"> FAQ </a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="nav-item">
					<a class="nav-link" href="/user/login/index.html"> 登录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/user/register/index.html"> 注册 </a>
				</li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>




<div id="main_div" class="container" style="padding-left: 25px; padding-right: 25px">
	<h2> 提交记录 5661 </h2>
	<hr />
	
	<div class="row">
		<div class="col-xs-12">
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-2"> 用户 </th>
					<th class="col-xs-3"> 题目 </th>
					<th class="col-xs-2"> 状态 </th>
					<th class="col-xs-1"> 得分 </th>
					<th class="col-xs-1"> 用时 </th>
					<th class="col-xs-1"> 内存 </th>
					<th class="col-xs-1"> 语言 </th>
					<th class="col-xs-1"> 代码长度 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> <a href='/user/profile/ciwomuli/index.html'> ciwomuli </a> </td>
<td> <a href='/problem/1002/index.html'> 1002. 测测你的多项式乘法 </a> </td>
<td> Accepted </td>
<td> 100 </td>
<td style='font-size:13px'> 660.731 ms </td>
<td style='font-size:13px'> 103 MB + 676 KB </td>
<td style='font-size:13px'> C++ </td>
<td style='font-size:13px'> 1.63 KB </td>
				</tr>
			</table>
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-6"> 提交时间 </th>
					<th class="col-xs-6"> 评测时间 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> 2018-09-01 19:32:02 </td>
<td style='font-size:13px'> 2019-01-19 11:57:26 </td>
				</tr>
			</table>
			<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/styles/tomorrow.min.css">
			<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/highlight.min.js"></script>
			<script>hljs.initHighlightingOnLoad();</script>
			<div class="row">
				<label for="code"> 代码 </label>
				<pre style="background-color:white"><code class="cpp">#include &lt;algorithm&gt;
#include &lt;cmath&gt;
#include &lt;cstdio&gt;
const double PI = acos(-1);
using namespace std;
struct Virt
{
	double r, i;
	Virt(double a, double b) : r(a), i(b) {}
	Virt()
	{
		Virt(0, 0);
	}
	Virt operator+(const Virt &amp;rch)
	{
		return Virt(r + rch.r, i + rch.i);
	}
	Virt operator-(const Virt &amp;rch)
	{
		return Virt(r - rch.r, i - rch.i);
	}
	Virt operator*(const Virt &amp;rch)
	{
		return Virt(r * rch.r - i * rch.i, r * rch.i + i * rch.r);
	}
};
Virt a[3000100], b[3000100], c[3000100];
void Rader(Virt *F, int len)
{
	int j = len &gt;&gt; 1;
	for (int i = 1; i &lt; len - 1; i++)
	{
		if (i &lt; j)
			swap(F[i], F[j]);
		int k = len &gt;&gt; 1;
		while (j &gt;= k)
		{
			j -= k;
			k &gt;&gt;= 1;
		}
		if (j &lt; k)
			j += k;
	}
}
void DFT(Virt *F, int len, int on)
{
	Rader(F, len);
	for (int h = 2; h &lt;= len; h &lt;&lt;= 1)
	{
		Virt wn(cos(-on * 2 * PI / h), sin(-on * 2 * PI / h));
		for (int j = 0; j &lt; len; j += h)
		{
			Virt w(1, 0);
			for (int k = j; k &lt; j + h / 2; k++)
			{
				Virt u = F[k];
				Virt t = w * F[k + h / 2];
				F[k] = u + t;
				F[k + h / 2] = u - t;
				w = w * wn;
			}
		}
	}
	if (on == -1)
	{
		for (int i = 0; i &lt; len; i++)
		{
			F[i].r /= len;
		}
	}
}
void FFT(Virt *A, Virt *B, Virt *C, int len)
{
	DFT(A, len, 1);
	DFT(B, len, 1);
	for (int i = 0; i &lt; len; i++)
	{
		C[i] = A[i] * B[i];
	}
	DFT(C, len, -1);
}

void poly_multiply(unsigned *aa, int n, unsigned *bb, int m, unsigned *cc)
{
//	scanf(&quot;%d%d&quot;, &amp;n, &amp;m);
	for (int i = 0; i &lt;= n; i++)
	{
		a[i].r=aa[i];
	}
	for (int i = 0; i &lt;= m; i++)
	{
		b[i].r=bb[i];
	}
	int Lim = 1;
	while (Lim &lt;= n + m)
		Lim &lt;&lt;= 1;
	FFT(a, b, c, Lim);
	for (int i = 0; i &lt;= n + m; i++)
		cc[i]=(int)(c[i].r + 0.5);
}</code></pre>
				<br />
				
				<label for="result"> 评测结果 </label><div class="row"><div class="col-xs-12"><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Compilation</b></td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">Compile OK</td><td class="col-xs-2" style="vertical-align:middle">Score: N/A</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_1" aria-expanded="false" aria-controls="detail_1">显示更多</a></td></tr></table></div><div class="collapse" id="detail_1"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>Compiling...
Compile success!
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #1</b></td><td class="col-xs-2" style="vertical-align:middle">660.731 ms</td><td class="col-xs-2" style="vertical-align:middle">103 MB + 676 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 100</td><td class="col-xs-2" style="vertical-align:middle"><a href="/status/index.html"> Server Status </a>
<a id="edb937fcbddd4324aad5f07e120adb12" href="http://www.iis7.com"  style="display:inline-block;background-color:;color:#fff;padding:2px 5px;font-family:arial;font-size:12px;font-weight:bold;" class="edb937fcbddd4324aad5f07e120adb12" target="_blank" >iis7站长之家</a></td></tr></table></div><div class="collapse" id="detail_2"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 660.731012
mem_kb = 106148
Correct Answer
</textarea></div></div></div></div>
			</div>
		</div>
	</div>

	<hr />
	
	<div class="row">
		<p style="text-align: center; color: #888">
			Judge Duck Online | 评测鸭在线 <br />
			Server Time: 2019-08-02 17:12:33 | Loaded in 0 ms | <a href="/status/index.html"> Server Status </a> <br />
			个人娱乐项目，仅供学习交流使用
		</p>
	</div>
</div>

</body>

</html>
